package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface CheckItemDao {
    @Insert("insert into t_checkitem(code,name,sex,age,price,type,remark,attention) values (#{code},#{name},#{sex},#{age},#{price},#{type},#{remark},#{attention})")
    public void add(CheckItem checkItem);
    public Page<CheckItem> findCheckItem(String queryString);
    public void delete(Integer id);
    public long findCountByCheckitemId(Integer id);
    public CheckItem findCheckItemId(Integer id);
    public void updateCheckItem(CheckItem checkItem);
    public List<CheckItem> findAll();//查询所有检查项信息
}
